what is dihedral and what is its purpose